<template>
  <div class="dataBase">
    <el-tabs v-model="tabName" class="demo-tabs">
      <el-tab-pane label="数据标准" name="classification"
        ><Classification v-if="tabName === 'classification'"
      /></el-tab-pane>
      <el-tab-pane label="制度信息配置" name="systemInfo"
        ><SystemInfo v-if="tabName === 'systemInfo'" :type="route.query.type" :id="route.query.id"
      /></el-tab-pane>
      <el-tab-pane label="信息配置" name="info"><Info v-if="tabName === 'info'" /></el-tab-pane>
      <el-tab-pane label="分类模型配置" name="classModel"
        ><ClassModel :id="id" :onlyShow="true" v-if="tabName === 'classModel'"
      /></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup lang="tsx">
import Classification from './classification.vue'
import Info from './info.vue'
import SystemInfo from './systemInfoConf.vue'
import ClassModel from '../modelManage/ClassModel.vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const id = ref<string>(route.query.id as string)
const tabName = ref('classification')
</script>

<style lang="scss">
.dataBase {
  .el-dropdown-link {
    cursor: pointer;
    color: var(--el-color-primary);
    display: inline-flex;
    align-items: center;
    line-height: 23px;
    padding-left: 12px;
  }
  .el-form .el-select {
    width: 100%;
  }
  :deep(.hide-expand .cell) {
    display: none;
  }
  :deep(.el-form .el-cascader) {
    width: 100%;
  }
  :deep(.operate-btn .el-button.is-text) {
    padding: 0 10px 0 0;
  }
  .el-dropdown-link:focus {
    outline: none;
  }
}
</style>
